#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int numbers[10];
    int i, j, a;
    printf("10 numbers:");
    for (i = 0; i < 10; i++) {
        scanf("%d", &numbers[i]);
    }
    for (i = 0; i < 9; i++) {
        for (j = 0; j < 9 - i; j++) {
            if (numbers[j] > numbers[j + 1]) {
                a = numbers[j];
                numbers[j] = numbers[j + 1];
                numbers[j + 1] = a;
            }
        }
    }
    printf("sorted=%d", numbers[0]);
    for (i = 1; i < 10; i++) {
        printf(",%d", numbers[i]);
    }
    printf("\n");
    return 0;
}